﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1.DesignerPatter.Mediator
{
    class Program2
    {
        public static void Main()
        {
            ConcreteMediator conMed = new ConcreteMediator();


            ConcreteColleague1 con1 = new ConcreteColleague1(conMed);
            conMed.Con1 = con1;
            con1.Send("同事1");

            ConcreteColleague2 con2 = new ConcreteColleague2(conMed);
            conMed.Con2 = con2;
            con2.Send("同事2");
            Console.Read();
        }
    }
}
